Skip to main content

-ngl / Offload

-ngl / Offload

  • Hardware & deployment
  • Stage 5 · Running It
  • refs checked 2026-11-09
What problem it solves

Give part of the model to the GPU and keep the rest on the CPU — the compromise when VRAM falls short.

What it is
Assigning layers across devices: whatever fits in VRAM goes to the GPU, the rest runs on the CPU backed by system memory. In llama.cpp this is usually controlled with the `-ngl` flag.
Why it matters

It lets models that "almost" fit run at all, at a clear cost in speed. A trade-off, not a free lunch.

Sources
  • Choosing by VRAM, backwards (Qwen3.8) ↗
Use this term in a task

Don’t stop at the definition: use the task handbook for the order and checks, or filter three tool candidates for the job at hand.

Task handbooks → · Filter three candidates →